import api from '@/http/index'
//获取门店列表
export const getShopData = data => {
    return new Promise((resolve, reject) => {
        api.get('http://chainstore.taikangyun365.com/Open/CityShopList', data)
            .then(res => {
                resolve(res)
            })
            .catch(err => {
                reject(err)
            })
    })
}

export const getOpenidWeChat = data => {
    return new Promise((resolve, reject) => {
        api.get('http://chainstore.taikangyun365.com/Open/GetOpenID', data)
            .then(res => {
                resolve(res)
            })
            .catch(err => {
                reject(err)
            })
    })
}


export const getItemInfo = data => {
    return new Promise((resolve, reject) => {
        api.get('http://chainstore.taikangyun365.com/Open/GetNurse', data)
            .then(res => {
                resolve(res)
            })
            .catch(err => {
                reject(err)
            })
    })
}
export const submit = data => {
    return new Promise((resolve, reject) => {
        api.post('http://chainstore.taikangyun365.com/Open/NurseRegister', data)
            .then(res => {
                resolve(res)
            })
            .catch(err => {
                reject(err)
            })
    })
}

